package com.qf.bbapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("t_user")
public class User {
    /** 主键，序号 */
    @TableId(type = IdType.AUTO)
    private Integer id ;
    /** 用户名 */
    private String name ;
    /** 手机号 */
    private String phone ;
    /** 密码 */
    private String password ;
    /** 状态 */
    private Integer flag ;
    private Date ctime;

    private Integer sex;
    private String  email;
    private String nickname;


    public User(String name, String phone, String password) {
        this.name = name;
        this.phone = phone;
        this.password = password;
        this.flag=1;
        this.ctime=new Date();
    }
}
